language: c

os:
  - linux
  - osx

env:
  matrix:
    - export NODE_VERSION="6"
    - export NODE_VERSION="5"
    - export NODE_VERSION="4"

matrix:
  fast_finish: true

before_install:
  - echo $TRAVIS_OS_NAME
  - "export TRAVIS_COMMIT_MSG=\"$(git log --format=%B --no-merges -n 1)\""
  - export START_FULL_TESTS=$(echo $TRAVIS_COMMIT_MSG | grep '\[full\]' -c)
  - if [ ${START_FULL_TESTS} = "1" ]; then echo "FULL TESTS!"; fi
  - git clone https://github.com/creationix/nvm.git ./.nvm
  - source ./.nvm/nvm.sh
  - nvm install $NODE_VERSION
  - nvm use $NODE_VERSION

before_script:
  - if [ ${NODE_VERSION} = "5" ]; then npm install -g npm; fi
  - npm -v
  - npm install
  - npm install -g gulp

script:
  - gulp init
  - gulp --release --ie
